<div class="main">
    <div class="wrap">
        <div class="section group">
            <div class="cont-desc span_1_of_2">
                <div class="categories">
                    <h3>趣链分类>>&nbsp;&nbsp;&nbsp;
                        <?php if(!empty($type))foreach ($type as $key=>$val){?>
                        <a href="/list_<?=$val['id']?>_0_1_0" style="font-size: 18px;color:
                        <?php if($val['id'] == $top_id){echo 'black';}else{?><?php echo 'white';}?>"><?=$val['name']?>
                        </a>
                            <?php if($key < count($type)-1){?>&nbsp;&nbsp;|&nbsp;&nbsp;<?php }?>
                        <?php }?>
                    </h3>
                    <?php if(!empty($son_type))foreach ($son_type as $key=>$val) {?>
                        <span class="sub_type"><a href="/list_<?=$val['id']?>_1_1_0" <?php if($val['id'] == $son_id){echo 'style="color:black;"';}?>"><?=$val['name']?></a></span>
                    <?php }?>

                    <?php if(!empty($sun_type))?><br><br><?php foreach ($sun_type as $key=>$val) {?>
                        <span class="sub_type"><a href="/list_<?=$val['id']?>_2_1_0" <?php if($val['id'] == $sun_id){echo 'style="color:black;"';}?>"><?=$val['name']?></a></span>
                    <?php }?>
                </div>
                <?php if(!empty($model))foreach ($model as $key=>$info) {?>
                <div class="product-details">
                    <div class="grid images_3_of_2" style="height: 285px;">
                        <a href="/info_<?=$info->id?>" target="_blank"><img src="<?=$info->image?>" alt="" height="100%" width="100%" "/></a>
                    </div>
                    <div class="desc span_3_of_2">
                        <a href="/info_<?=$info->id?>"><h2><?=$info->title?></h2></a>
                        <div class="price">
                            <p>分类: <span><?=$info->typeTitle?></span></p>
                        </div>
                        <div class="available">
                            <ul>
                                <li><span>是否推荐:</span> &nbsp;
                                    <?=$info->recommendStatus?>
                                    <?php if($info->recommend != 1){?>
                                        <div class="button"><span><a href="http://<?=$info->url?>">我要上推荐</a></span></div>
                                    <?php }?>
                                </li>
                                <li><span>收录时间:</span>&nbsp; <?=$info->title?></li>
                                <li><span>审核时间:</span>&nbsp; <?=$info->authTime?></li>
                            </ul>
                        </div>
                        <div class="product_desc">
                            <h2>网站简介 :</h2>
                            <p><?=$info->desc?></p>
                        </div>
                        <div class="share-desc">
                            <div class="button"><span><a href="http://<?=$info->url?>">我要去看看</a></span></div>
                            <div class="clear"></div>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <?php }?>
                <div class="clear"></div>
                <div class="text-center">
                    <div id="pagination2" class="page fl">
                        <?=\yii\widgets\LinkPager::widget([
                            'pagination' => $page,
                            'maxButtonCount'=>5,
                            'firstPageLabel' => '首页',
                            'lastPageLabel' => '尾页',
                        ]);?>
                    </div>
                </div>
            </div>




            <div class="rightsidebar span_3_of_1 sidebar">
                <h2>最新推荐</h2>
                <?php if(!empty($recommend_web))foreach ($recommend_web as $key=>$val){if($key<=9){?>
                <div class="special_movies">
                    <div class="movie_poster">
                        <a href="/info_<?=$val['id']?>"><img src="<?php echo !empty($val['image'])? $val['image'] : '/images/demo.png'?>" alt="" /></a>
                    </div>
                    <div class="movie_desc">
                        <h3><a href="/info_<?=$val['id']?>"><?php if(mb_strlen($val['title']) >10){echo mb_substr($val['title'],0,7).'...';}else{echo $val['title'];}?></a></h3>
                        <span><?php echo $val['typeName']['name']?></span>
                        <p><?=$val['auth_time']?></p>
                        <span><a href="http://<?php echo $val['url']?>" target="_blank">我要去看看</a></span>
                    </div>
                    <div class="clear"></div>
                </div>
                <?php }}?>
            </div>
            <div class="rightsidebar span_3_of_1 sidebar">
                <h2>VIP快速审核通过</h2>
                <?php if(!empty($vip_web))foreach ($vip_web as $key=>$val){if($key<=9){?>
                    <div class="special_movies">
                        <div class="movie_poster">
                            <a href="/info_<?=$val['id']?>"><img src="<?php echo !empty($val['image'])? $val['image'] : '/images/demo.png'?>" alt="" /></a>
                        </div>
                        <div class="movie_desc">
                            <h3><a href="/info_<?=$val['id']?>"><?php if(mb_strlen($val['title']) >10){echo mb_substr($val['title'],0,7).'...';}else{echo $val['title'];}?></a></h3>
                            <span><?php echo $val['typeName']['name']?></span>
                            <p><?=$val['auth_time']?></p>
                            <span><a href="http://<?php echo $val['url']?>" target="_blank">我要去看看</a></span>
                        </div>
                        <div class="clear"></div>
                    </div>
                <?php }}?>
            </div>
        </div>
    </div>
</div>